package com.hundsun.documentripper.mapper;

import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hundsun.documentripper.domain.pojo.ProductVersion;

/**
 * Note：
 *
 * @author ：mengjw
 * @description：产品版本Mapper
 * @date ：Created in 2021/1/26
 */
public interface ProductVersionMapper extends BaseMapper<ProductVersion> {

    /**
     * 查询最新的产品版本
     *
     * @param productUuid
     * @return
     */
    @Select("select * from product_version where product_uuid = #{productUuid} " +
            "order by code desc limit 1")
    ProductVersion selectLast(String productUuid);

}